package ie.timalb.chess.rules;

import ie.timalb.chess.Board;
import ie.timalb.chess.Movement;
import ie.timalb.chess.MovementCompare;

public class PawnCanMoveOneSquareForward implements Rule {

	public boolean validateMovement(Movement mov, Board board) {
		boolean result=false;
		MovementCompare movCompare;
		
		movCompare = mov.compareLocations();
		if (movCompare.getDeltaX()==0 && movCompare.getDeltaY()==1){
			result = true;
		}
		return result;
	}

}
